package com.xdhl.fu.member.api.factory;

import com.xdhl.fu.member.api.RemoteListShuntService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * 会员分流服务降级处理
 *
 * @author 朱力维
 * @time 2022/6/7 13:48
 */
@Component
public class RemoteListShuntFallbackFactory implements FallbackFactory<RemoteListShuntService> {

    private static final Logger log = LoggerFactory.getLogger(RemoteListShuntFallbackFactory.class);

    @Override
    public RemoteListShuntService create(Throwable throwable) {
        log.error("会员服务调用失败:{}", throwable.getMessage());
        return null;
    }

}
